//
//  ExampleTableViewController.swift
//  LearnSwift
//
//  Created by 王朝孟 on 2021/1/22.
//

let kItemTitle = "title"
let kItemClass = "class"

let TODO_CONTENT_CELL_ID = "TodoContentCell"

func addClass(_ title: Any, _ classdddd: Any) -> [String : Any] {
    [
        kItemTitle: title,
        kItemClass: NSStringFromClass(classdddd as! AnyClass)
    ]
}



import UIKit

class ExampleTableViewController: UITableViewController {

    var arrayM : [String] = []

    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = UIColor.white
        title = "页面列表"
       
//        arrayM = [addClass("数据统计", GYOwnerStatisticsController())]
        arrayM = ["吃饭", "睡觉", "抢银行"]
    }
    
    override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int{
        return arrayM.count
    }
    
    override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell{
        let cell = tableView.dequeueReusableCell(withIdentifier: TODO_CONTENT_CELL_ID, for: indexPath)
        cell.textLabel?.text="\(indexPath.row)"
        return cell
        
    }
}
